
#include <stdio.h>
#include <string.h>

unsigned long hash(const char * str)
{
  int len = strlen(str);
  unsigned long hash = 2166136261UL;
  while (len--)
  {
	  int
		  ch = str[len];
	  if ('a' <= ch && ch <= 'z')
	  {
		  ch &= ~0x20;
	  }
	  hash = (hash ^ ch) * 16777619;
  }
  return hash;
}

void write(const char * str)
{
  printf("perl -pe \'s/!strcmp\\(cmd, *\"%s\", *true\\)/ cmdhash == \\/* %s *\\/ %d /g\' anims.pwn > anims.tmp && rm anims.pwn && mv anims.tmp anims.pwn\n", str, str, hash(str));
  //printf("%d\n", hash(str));
}

int main(void)
{
  char str[100];
  while(gets(str))
    write(str);
  return 0;
}





